<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="com.thx.common.util.AppContext" %>
<%@ page import="com.thx.common.web.WebConstant" %>
<%!String serverCaptcha = "";%>
<%
    boolean debug = Boolean.parseBoolean(AppContext
            .getProperties(WebConstant.LOGIN_DEBUG));
    if (debug) {
        serverCaptcha = "debug";
    }
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="${pageContext.request.contextPath}/css/font-awesome.min.css" rel="stylesheet"/>
    <link href="${pageContext.request.contextPath}/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="${pageContext.request.contextPath}/css/AdminLTE/AdminLTE.min.css" rel="stylesheet"/>
    <link href="${pageContext.request.contextPath}/css/common.css" rel="stylesheet"/>
    <link href="${pageContext.request.contextPath}/css/login.css" rel="stylesheet"/>

    <title>登录</title>
    <script type="text/javascript">
        //获取验证码
        function changeImg() {
            var rad = "${pageContext.request.contextPath}/user/captcha.action?date="
                    + new Date();
            $("#captchaimg").attr("src", rad);
        }
    </script>
    <style type="text/css">
        .form-control {
            height: 39px
        }

        #captcha > span {
            right: 13px
        }
    </style>
</head>
<body>
<div class="top">
    <div class="w960">
        <h2>覆盖默认登录 Logo</h2>
    </div>
</div>
<div class="banner">
    <div class="login2">
        <div class="login2_child">
            <div class="box">
                <form method="post" name="loginForm" data-toggle="validator" role="form" style="font-family: 微软雅黑">
                    <div class="box-body">
                        <div class="form-group Pdiv">
                            <input type="text" value="${loginName}" name="loginName"
                                   class="form-control required" placeholder="用户名"/>
                        </div>
                        <div class="form-group Pdiv">
                            <input type="password" name="passwd" value="${passwd}"
                                   class="form-control required" placeholder="密码"/>
                        </div>

                        <div class="form-group col-xs-6" style="padding-left:0px;margin-bottom: 0px">
                            <input type="text" name="captcha" id="captcha" class="form-control required"
                                   value="<%=serverCaptcha%>" placeholder="验证码"/>
                        </div>
                        <div class="form-group col-xs-6" style="padding-left:0px">
                            <img src="${pageContext.request.contextPath}/user/captcha.action"
                                 title="点击刷新验证码" onclick="changeImg()" id="captchaimg" width=85 height="36px"
                            />
                        </div>
                        <div class="form-group">
                            <input type="checkbox"/><span style="margin-left: 10px">记住密码</span>
                        </div>
                        <button type="submit" style="line-height: 28px;font-size: 16px"
                                class="btn btn-success col-xs-12">登录
                        </button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<div class="footer">© 2013-2015 山西泰和鑫软件股份有限公司 版权所有</div>
<!-- 提示框 -->
<div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel" id="dialog">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title">提示</h4>
            </div>
            <div class="modal-body">
                <p id="msg"></p>
            </div>
            <div class="modal-footer"></div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
<!-- /.modal -->

<!-- 加载中div -->
<div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel" id="lodding">
    <div class="modal-dialog modal-sm" style="margin-top: 305px">

        <div id="fountainG">
            <div id="fountainG_1" class="fountainG"></div>
            <div id="fountainG_2" class="fountainG"></div>
            <div id="fountainG_3" class="fountainG"></div>
            <div id="fountainG_4" class="fountainG"></div>
            <div id="fountainG_5" class="fountainG"></div>
            <div id="fountainG_6" class="fountainG"></div>
            <div id="fountainG_7" class="fountainG"></div>
            <div id="fountainG_8" class="fountainG"></div>
        </div>
    </div>
    <!-- /.modal-dialog -->
</div>
<!-- /.modal -->
<!-- 加载中 -->
</body>
</html>
<script type="text/javascript">
    var ctxPath = "${pageContext.request.contextPath}";
</script>
<script data-main="${pageContext.request.contextPath}/scripts/login" src="${pageContext.request.contextPath}/scripts/lib/requirejs/require.js"></script>

